<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<BulletOnRails4NET.Models.CrudModel>>" %>
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    Delete Confirmation
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Delete Confirmation
    </h2>
    <% using (Html.BeginForm() ) { %>
    <div>
        <p>
            Please confirm you want to delete: 
        </p>
            <ul>
                <% foreach (var model in Model)
                   { %>
               <li> <%= model.GetAsLabel() %> </li>
               <li> <%= Html.Hidden(model.GetId().ToString(), "1") %> </li>
                 <% } %>
            </ul>
    </div>
    <input name="confirmButton" type="submit" value="ConfirmedDelete" />
    <% } %>
</asp:Content>
